package com.fate.feign;

import com.fate.domain.Prod;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "product-service")
public interface IndexImgProdFeign {

    /**
     * 远程调用根据商品id查询商品对象
     */
    @PostMapping("prod/prod/getProdById")
    Prod getProdById(@RequestParam Long prodId);
}
